package com.jykj.modbus.system.runtime.mvc;

import lombok.Data;

import java.util.Map;

/**
 * 线程局部类，用于存放当前用户信息等数据
 * @author liukai
 *
 */
@Data
public class BaseLocal {

	private Integer userId; //当前用户ID
	private String userName;//当前用户名
	private Map<String,String> params;//其他信息
	/**
		* 当前用户ID
		*/
	private Integer currentUserId;
	public BaseLocal() {
	}
	public BaseLocal(Integer userId) {
		this.userId = userId;
	}
	public BaseLocal(String userName) {
		this.userName = userName;
	}
	public BaseLocal(Map<String,String> params) {
		this.params = params;
	}
	public BaseLocal(Integer userId, String userName) {
		this.userId = userId;
		this.userName = userName;
	}
	public BaseLocal(String userName, Map<String, String> params) {
		this.userName = userName;
		this.params = params;
	}

	public BaseLocal(Integer userId, Map<String, String> params) {
		this.userId = userId;
		this.params = params;
	}

	public BaseLocal(Integer userId, String userName, Map<String, String> params) {
		this.userId = userId;
		this.userName = userName;
		this.params = params;
	}
}
